package com.cjhhv.visual.dao;


import com.cjhhv.visual.model.DashboardModel;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface DashboardDao {

    public List<DashboardModel> queryDashboardPageList(DashboardModel parameter);

    public int queryDashboardIsExist(DashboardModel parameter);

    /**
     * 根据id查询仪表板
     * @param dashboardId
     * @return
     */
    public DashboardModel queryDashboardById(String dashboardId);

    /**
     * 添加仪表板
     * @param parameter
     * @return
     */
    public int saveDashboard(DashboardModel parameter);

    /**
     * 根据id修改仪表板
     * @param parameter
     * @return
     */
    public int updateDashboardById(DashboardModel parameter);

    /**
     * 根据ids删除仪表板
     * @param parameter
     * @return
     */
    public int deleteDashboardByIds(DashboardModel parameter);

}
